package top.suven.base.http.admin.sec.model;

import top.suven.base.core.mybatis.crud.*;

import java.io.Serializable;
import java.util.List;

/**
 * @Title: Role.java
 * @Description: 角色的数据模型
 * @author lixiangling
 * @date   2018/08/13 16:58:08
 * @version V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
//@Entity
@Table(name = "sec_role")
public class Role implements Serializable {

	private static final long serialVersionUID = -3514444339457955124L;
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "role_code" , nullable = false)
	/** 角色编码 */
	private String roleCode;
	@Column(name = "role_name" , nullable = false)
	/** 角色名称 */
	private String roleName;
	@SoftDelete
	@Column(name = "status" , nullable = false)
	/** 状态 */
	private Integer status;
	@Column(name = "reorder" , nullable = false)
	/** 排序 */
	private Integer reorder;
	@Column(name = "remark" , nullable = false)
	/** 备注 */
	private String remark;
	@Column(name = "enable_status" , nullable = false)
	/** 启用状态 启用-1、禁用-0 */
	private Integer enableStatus;



	private List<RoleMenu> roleMenuList;


	
	public void setRoleCode(String roleCode){
		this.roleCode = roleCode;
	}
	
	public String getRoleCode(){
		return this.roleCode;
	}
	
	public void setRoleName(String roleName){
		this.roleName = roleName;
	}
	
	public String getRoleName(){
		return this.roleName;
	}
	
	public void setStatus(Integer status){
		this.status = status;
	}
	
	public Integer getStatus(){
		return this.status;
	}
	
	public void setReorder(Integer reorder){
		this.reorder = reorder;
	}
	
	public Integer getReorder(){
		return this.reorder;
	}
	
	public void setRemark(String remark){
		this.remark = remark;
	}
	
	public String getRemark(){
		return this.remark;
	}
	
	public void setEnableStatus(Integer enableStatus){
		this.enableStatus = enableStatus;
	}
	
	public Integer getEnableStatus(){
		return this.enableStatus;
	}

	public List<RoleMenu> getRoleMenuList() {
		return roleMenuList;
	}

	public void setRoleMenuList(List<RoleMenu> roleMenuList) {
		this.roleMenuList = roleMenuList;
	}
}